package universal.schema.model;

import java.util.ArrayList;

public class Node {
	
	Table tblObj;
	String primaryKey;
	String foreignKey;
	ArrayList<Node> linkedNodes = new ArrayList<Node>(); 

	public ArrayList<Node> getLinkedNodes() {
		return linkedNodes;
	}
	public void setLinkedNodes(ArrayList<Node> linkedNodes) {
		this.linkedNodes = linkedNodes;
	}
	public Table getTblObj() {
		return tblObj;
	}
	public void setTblObj(Table tblObj) {
		this.tblObj = tblObj;
	}
	public String getPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(String primaryKey) {
		this.primaryKey = primaryKey;
	}
	public String getForeignKey() {
		return foreignKey;
	}
	public void setForeignKey(String foreignKey) {
		this.foreignKey = foreignKey;
	}
	
	/*
	 * adds a new link
	 */
	public void addLinkedNode(Node obj){
		//System.out.println("in addlinked node func");
		
		linkedNodes.add(obj);
		
	}
	
}